//go:build wireinject
// +build wireinject

package main

import "github.com/google/wire"

func InitApp() (*FooMessage, error) {
	wire.Build(ProvideMessage, ProvideBeer, wire.Struct(new(FooMessage), "msg", "ber"))
	return &FooMessage{}, nil

}

type Message string
type Beer string

type FooMessage struct {
	Msg Message
	Ber Beer
}

func ProvideMessage() Message {
	return "info"
}

func ProvideBeer() Beer {
	return "xuehua666"
}
